#pragma once
#include <highgui.h>
#include "decodeqr.h"

class QRScanner
{
public:
	static QRScanner& getInstance(void);
	~QRScanner(void);

	bool initialise(void);
	void destroy(void);
	void showScanner(void);
	void hideScanner(void);
	void update(void);
	const char* scan(void);
private:
	QRScanner(void);

	IplImage* mpImage;
	QrDecoderHandle mDecoder;
	CvCapture* mpCapture;
	bool mDisplayScan;
};

